package cn.edu.cimv.dao.mapper;

import cn.edu.cimv.dao.entity.Direction;
import cn.edu.cimv.dao.entity.Option;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 门铎 on 2016/11/24.
 */
@Repository
public interface OptionMapper {

    List<Option> queryTitles(@Param("cataType")String cataType);
    Option queryTitlesById(@Param("id")int id);
    void insertOption(@Param("option")Option option);
    void updateOption(@Param("option")Option option);
    void deleteOption(@Param("id")int id);

    List<Direction> queryDirections();
    void insertDirection(@Param("direction")Direction direction);
    void updateDirection(@Param("direction")Direction direction);
    void deleteDirection(@Param("id")int id);
    Direction queryDirectionsById(@Param("id")int id);
    List<Direction> queryDirectionsByOid(@Param("oId")int oId);
}
